<?php 
	include_once 'thuvienham.php';
	include_once 'lophoc_db.php';

	class lophoc_bs 
	{
		//------------------Fields [6]------------------
			// #0
		private $MaLopHoc = "";
		public function SetMaLopHoc($MaLopHoc)           { $this->MaLopHoc = $MaLopHoc;           }
		public function GetMaLopHoc()                    { return $this->MaLopHoc;                }
			// #1
		private $MaKhoaHoc = "";
		public function SetMaKhoaHoc($MaKhoaHoc)         { $this->MaKhoaHoc = $MaKhoaHoc;         }
		public function GetMaKhoaHoc()                   { return $this->MaKhoaHoc;               }
			// #2
		private $MaChuongTrinh = "";
		public function SetMaChuongTrinh($MaChuongTrinh) { $this->MaChuongTrinh = $MaChuongTrinh; }
		public function GetMaChuongTrinh()               { return $this->MaChuongTrinh;           }
			// #3
		private $MaThoiGianHoc = "";
		public function SetMaThoiGianHoc($MaThoiGianHoc) { $this->MaThoiGianHoc = $MaThoiGianHoc; }
		public function GetMaThoiGianHoc()               { return $this->MaThoiGianHoc;           }
			// #4
		private $PIN = "";
		public function SetPIN($PIN)                     { $this->PIN = $PIN;                     }
		public function GetPIN()                         { return $this->PIN;                     }
			// #5
		private $MaPhong = "";
		public function SetMaPhong($MaPhong)             { $this->MaPhong = $MaPhong;             }
		public function GetMaPhong()                     { return $this->MaPhong;                 }

		//------------------Method------------------
		public function Them()
		{
			$data = new lophoc_db();
			return $data->Them($this->MaLopHoc, $this->MaKhoaHoc, $this->MaChuongTrinh, $this->MaThoiGianHoc, $this->PIN, $this->MaPhong);
		}

		public function Xoa()
		{
			$data = new lophoc_db();
			return $data->Xoa($this->MaLopHoc);
		}

		public function CapNhat()
		{
			$data = new lophoc_db();
			return $data->CapNhat($this->MaLopHoc, $this->MaKhoaHoc, $this->MaChuongTrinh, $this->MaThoiGianHoc, $this->PIN, $this->MaPhong);
		}

		public function LayDanhSach()
		{
			$data = new lophoc_db();
			return $data->LayDanhSach($this->MaLopHoc, $this->MaKhoaHoc, $this->MaChuongTrinh, $this->MaThoiGianHoc, $this->PIN, $this->MaPhong);
		}
		
		public function LayDanhSachPaging($Start, $Limit)
		{
			$data = new lophoc_db();
			return $data->LayDanhSach($this->MaLopHoc, $this->MaKhoaHoc, $this->MaChuongTrinh, $this->MaThoiGianHoc, $this->PIN, $this->MaPhong, $Start, $Limit);
		}
		
	}

